/**
 * 
 */
package dms.service;

import java.util.Date;

import dms.model.Building;
import dms.model.Campus;
import dms.model.form.Notice;
import dms.model.util.PageIterator;

/**
 * @author 李健
 *
 */
public interface NoticeQueryService {
	
	Notice findNoticeById(Long id);

	PageIterator<Notice> findAllLostNotice(int start, int count, String query, Date fromDate, Date toDate, Boolean applied);
	
	PageIterator<Notice> findAllFoundNotice(int start, int count, String query, Date fromDate, Date toDate, Boolean applied);

	PageIterator<Notice> findLostNoticeByCampus(int start, int count, Campus campus, String query, Date fromDate, Date toDate, Boolean applied);
	
	PageIterator<Notice> findFoundNoticeByCampus(int start, int count, Campus campus, String query, Date fromDate, Date toDate, Boolean applied);

	PageIterator<Notice> findLostNoticeByBuilding(int start, int count, Building building, String query, Date fromDate, Date toDate, Boolean applied);
	
	PageIterator<Notice> findFoundNoticeByBuilding(int start, int count, Building building, String query, Date fromDate, Date toDate, Boolean applied);

}
